package com.easy.api.type;

public enum PlatformType {
    H5(1),
    WX_MINIPROGRAM(2),
    WX_MP(3),
    APP(4),
    BD_MP(5),
    BD_MINIPROGRAM(6),
    ALIPAY_MP(7),
    ALIPAY_MINIPROGRAM(8),
    DD_MP(9),
    DD_MINIPROGRAM(10),
    TOUTIAO_MP(11),
    TOUTIAO_MINIPROGRAM(12);

    private final int value;

    private PlatformType(int value) {
        this.value = value;
    }

    public static PlatformType get(int value) {
        PlatformType[] values = values();
        return values[value - 1];
    }

    public int getValue() {
        return this.value;
    }

    public static void main(String[] args) {
        for(int i = 1; i < 11; ++i) {
            System.out.println(get(i));
        }
    }
}
